<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片展示</title>
    <link rel="stylesheet" href="/static/css/bootstrap.css">
</head>
<body>
<form action="">
    <input type="text" name="where" placeholder="分类或者关键关键字搜索"><input type="submit" value="搜索">
</form>
<table class="table">
    <tr>
        <th>图片ID</th>
        <th>分类</th>
        <th>标题</th>
        <th>图片</th>
        <th>链接</th>
        <th>评论</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    {foreach $data as $k=>$v}
    <tr>
        <td>{$v.pid}</td>
        <td>{$v.class}</td>
        <td>{$v.title}</td>
        <td><img src="{$v.img}" alt=""></td>
        <td><a href="">{$v.link}</a></td>
        <td>{$v.comment}</td>
        <td>{$v.create_time}</td>
        <td>其他</td>

    </tr>
    {/foreach}
</table>
{$data|raw}
</body>
</html>